Page({
    data: {
        userInfo:[
            '真实姓名：',
            '证件类型：',
            '证件号码：'
        ],
        comInfo:[
          '公司名称：', '证件图片：'
        ],
        realNameAuth:'',
        enterPriseAuth:'',
    },


    /**
     * 0：认证中 1：成功 2：失败 3:待认证
     * @param options
     */
    onLoad: function (options) {
        //个人认证
        if(options.realNameAuth){
            let realNameAuth = options.realNameAuth
            realNameAuth = JSON.parse(realNameAuth)
            this.setData({
                realNameAuth
            })
        }
        //公司认证
        if(options.enterPriseAuth){
            let enterPriseAuth = options.enterPriseAuth
            enterPriseAuth = JSON.parse(enterPriseAuth)
            this.setData({
                enterPriseAuth
            })
        }
    },
    realNameChange(){
        wx.redirectTo({
            url: '/userPage/pages/nameCertification/nameCertification',
        })
    },
    enterPriseChange(){
        wx.redirectTo({
            url: '/userPage/pages/companyAttestation/companyAttestation',
        })
    },
});
